package ru.pb.game.network.engine.client.packets.receivable;

import ru.pb.game.network.engine.client.packets.FromClientToGameServerPacket;
import ru.pb.game.network.engine.client.packets.sendable.opcode_1310_ACK;

public class opcode_1310_REQ extends FromClientToGameServerPacket
{

	public opcode_1310_REQ()
	{

	}

	@Override
	public void readImpl()
	{
		readH();
		int len_clan_name = readC();
		int len_nickName = readC();
		int len_info = readC();
		
		String Clan = readS(len_clan_name);
		String Nick = readS(len_nickName);
		String Info = readS(len_info);
		
		int unk = readD();
		
		_log.info("=== opcode_1310_REQ ===");
		_log.info("Clan name: " + Clan);
		_log.info("Nick Name: " + Nick);
		_log.info("Info: " + Info);
		_log.info("UNK: " + unk);
		_log.info("=== opcode_1310_REQ ===");
	}

	@Override
	public void runImpl()
	{
		getClient().getPlayer().sendPacket(new opcode_1310_ACK());
	}

}
